<?php
$items = $block->getItems();
?>
<div class="box">
	<div class="box-title">
		<h3>Categories</h3>
		<?php if($block->isApplied()): ?>
			<a href="<?php echo $block->getClearUrl() ?>" class="ajaxUpdate clear-btn">x</a>
		<?php endif ?>
	</div>
	<div class="box-content">
		<?php if(count($items)): ?>
		<ul class="tree">
		<?php foreach($items as $item):?>
			<?php $this->renderPartial('/catalog/filter/category/item', array('item'=> $item, 'block'=>$block)) ?>
		<?php endforeach ?>
		</ul>
		<?php endif ?>
	</div>
</div>
